import http from "@/utils/request";

export async function chatroomList() {
    return await http('/chatroom/list', 'get');
}

export async function chatHistoryList(id:number) {
    return await http('/chat-history/list', 'get', { chatroomId: id });
}